From 667035011d3441b4367e4968bf77171a184bea76 Mon Sep 17 00:00:00 2001 From: "emellor@leeni.uk.xensource.com" Date: Wed, 30 Nov 2005 18:55:09 +0000 Subject: [PATCH] Fix the reporting when this test fails (the eyecatcher variables would not be created if the domain creation actually succeeded). Use total_memory not free_memory to determine how big to make the domain -- when ballooning down of dom0 works properly, creating a domain larger than free_memory is possible. Signed-off-by: Ewan Mellor --- tools/xm-test/tests/create/06_create_mem_neg.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/xm-test/tests/create/06_create_mem_neg.py b/tools/xm-test/tests/create/06_create_mem_neg.py index d62dca61ae..187495caa0 100644 --- a/tools/xm-test/tests/create/06_create_mem_neg.py +++ b/tools/xm-test/tests/create/06_create_mem_neg.py @@ -31,6 +31,7 @@ domain1=XenDomain(opts1) try: domain1.start() + eyecatcher1 = "Created" except DomainError, e: eyecatcher1 = "Fail" @@ -41,7 +42,7 @@ if eyecatcher1 != "Fail": # Test 2: create a domain with mem>sys_mem -mem = int(getInfo("free_memory")) +mem = int(getInfo("total_memory")) extreme_mem = str(mem + 100) opts2= { @@ -56,6 +57,7 @@ domain2=XenDomain(opts2) try: domain2.start() + eyecatcher2 = "Created" except DomainError, e: eyecatcher2 = "Fail" -- 2.30.2